package com.heatingcharge.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description: heating_charge_server
 * User: Devin
 * Date: 2019-10-15
 * Time: 11:52
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class HeatYearDTO {
    private String yearName;

    /**
     * 收费开始日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date chargeStart;

    /**
     * 收费结束日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date chargeEnd;

    /**
     * 供热开始日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date heatStart;

    /**
     * 供热结束日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date heatEnd;
}
